package com.example.demo.test123;

import com.example.demo.mapper.UsertableMapper;
import com.example.demo.mapper.YestqMapper;
import com.example.demo.mode1.Usertable;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
public class Test1 {

    @Resource
    public UsertableMapper userMapper;


    @RequestMapping("/text")
    public String pring(ModelMap map) {
//        map.put("users", userMapper.selectByExample(null));
        map.put("yestqs", userMapper.selectByExample(null));
        return "user";
    }

}
